﻿namespace Wips.Domain.Models
{
    /// <summary>
    /// 自服务配置
    /// </summary>
    [SqlSugar.SugarTable("agent_server_config")]
    public class AgentServerConfig : ValueObjectBase
    {

        /// <summary>
        /// 归属的服务
        /// </summary>
        public string AgentServerId { get; set; } = "";

        /// <summary>
        /// 归属服务
        /// </summary>
        [SqlSugar.Navigate(SqlSugar.NavigateType.ManyToOne, nameof(AgentServerId))]
        public AgentServer? AgentServer { get; set; }



        /// <summary>
        /// 服务器名称
        /// </summary>
        public string ServerName { get; set; } = "";


        /// <summary>
        /// iis的名称，用来重启服务
        /// </summary>
        public string IISName { get; set; } = "";

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = "";

        /// <summary>
        /// 根目录
        /// </summary>
        public string RootPath { get; set; } = "";
    }
}
